package org.yzh.web.service;

import org.yzh.web.component.mybatis.PageInfo;
import org.yzh.web.model.entity.AlarmCountDO;
import org.yzh.web.model.vo.*;

import java.time.LocalDate;
import java.util.List;
import java.util.Optional;

/**
 * @author lsj
 * @date 2021/1/16 18:55
 */
public interface AlarmCountService {
    List<AlarmCountDO> find(AlarmCountQuery query);

    CountAndSummary<AlarmCount> findAlarmCount(AlarmCountQuery query, PageInfo pageInfo);

    Optional<AlarmCountDO> findUnique(String deviceId, String plateNo, LocalDate date);

    List<MileageAlarm>findMileageAlarm(DateTimeQuery query);

    int batchInsert(List<AlarmCountDO> records);

    int update(AlarmCountDO record);

    int insert(AlarmCountDO record);

    int upsert(AlarmCountDO record);
}
